<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="${path }/favicon.ico" />
<link href="${skin }/theme.css" rel="stylesheet" type="text/css" />
<link href="${skin }/member.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${path }/style/bank.css" />
<script src="${path }/js/common/jquery1.10.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<script src="${path }/js/member/draw.js?v=${v}"></script>
<script src="${path }/js/member/bindCard.js?v=${v}"></script>
<title>会员中心-提现</title>
<style type="text/css">
body{background:#F5F5F5;}
.logo_main_bor{box-shadow: 0px 2px 6px rgba(2, 0, 0, 0.1);}
</style>
<style type="text/css">
.money_cont{padding-left: 60px;}
.money_cont li{clear: both;font-size: 16px;padding-top: 15px;padding-bottom: 10px;line-height: 36px;}
.money_cont li h1{float: left;width: 120px; text-align: right;}
</style>
</head>
<body>
<c:import url="../../include/head.jsp"></c:import>
<c:import url="../../include/logo_menu.jsp">
	<c:param name="type" value="index"></c:param>
</c:import>

<div class="youarehere">
	<div class="localtion"><a href="${path }/">首页</a> » 提现</div>
</div>

<div class="wrapper auto_height">

<c:import url="../left.jsp"></c:import>

<div class="bodyright l" style="width:778px;">
	<div class="line_EAEAEA auto_height" style="background: #fff;margin-bottom: 20px;">
		<div style="padding: 12px">
			<div class="hkjh_top_ul1_li1div1">提现</div>
		</div>
		<c:if test="${!isTrust}">
		<div>
			<table width="100%" border="1" cellpadding="0" cellspacing="1" bgcolor="#d6d6d6">
			<tr class="white_bj_title">
				<td width="26%" height="30" align="center">银行名称</td>
				<td width="12%" align="center">银行卡尾号</td>
				<td width="21%" height="30" align="center">支行名称</td>
			</tr>
			<c:forEach items="${bankCardList}" var="bankCard" varStatus="status">
			<tr class="white_bj">
				<td height="35" align="center">
					<input name="bankcard_no" type="radio" class="l" <c:if test="${bankCard.isPriority eq 'YES'}">checked</c:if> value="${bankCard.id}" /><i class="${bankCard.bankName.value} l"></i>
				</td>
				<td height="35" align="center">${fn:substring(bankCard.bankCardNo,fn:length(bankCard.bankCardNo)-4,fn:length(bankCard.bankCardNo))}</td>
				<td height="35" align="center">${bankCard.subbranch}</td>
			</tr>
			</c:forEach>
			<tr class="white_bj">
				<td height="30" colspan="5"><a class="public_gray"
					style="vertical-align: middle;" href="${path}/memberCenter/cardManager.htm"><b
					title="添加银行卡">添加银行卡</b></a><span>(还可以添加${maxAccountNum}个)</span></td>
			</tr>
		</table>
		</div>
		</c:if>
		<c:choose> 
			     <c:when test="${isBindCard eq '1'}">
		     		<ul class="gray auto_height money_cont f_yh" style="margin: 26px auto;">
		     			<input type="hidden" name="canDrawMoney" id="canDrawMoney" value="${account.baseMoney/100 - account.freezeMoney/100}"/>
						<li><h1>持卡人: </h1><div class="l" style="padding-left: 10px;">${account.userName }</div></li>
						<li><h1>可提现金额: </h1><div class="l" style="padding-left: 10px;"><span class="red">￥${account.baseMoney/100 - account.freezeMoney/100 }</span> 元</div></li>
						<li><h1>提现金额: </h1><div class="l" style="padding-left: 10px;">
					 		<input type="text" name="money" id="money" value="请输入提现金额" onfocus="if (value =='请输入提现金额'){value =''}" onblur="if (value ==''){value='请输入提现金额'}" class="font_yh s_16" style="padding:1px 0 1px 6px ;line-height:36px;border:1px solid #b4b4b4; margin-right:8px;width:220px; height:36px;"/>
						</div></li>
						<li><h1>提现手续费: </h1><div class="l" style="padding-left: 10px;"><span class="red">￥0</span> 元 <span class="s_14">（提现手续费将从您的账户可用余额中扣除）</span></div></li>
						<li><h1>实际扣除金额: </h1><div class="l" style="padding-left: 10px;"><span class="red">￥0</span> 元 </div></li>
						<li style="padding-top:26px;padding-bottom:26px"><h1>&nbsp;</h1>
					    <div class="l" style="padding-left: 10px;"><a href="javascript:void(0);" class="pub_bt" onclick="draw()">确定</a></div>
					    </li>
					</ul>
			     </c:when> 
			     <c:when test="${isBindCard eq '0'}"> 
			     	<div class="tixian_tip">很抱歉，您还没有绑定银行卡，暂时不能取现。现在就去绑定吗？ <a href="<%=request.getContextPath()%>/memberCenter/cardManager.htm"> >>点我绑定</a></div>
			     </c:when> 
			     <c:otherwise></c:otherwise>
		</c:choose>
<br />
<br />
</div>

</div>
</div>
<!-- 友情链接 -->
<c:import url="../../include/links.jsp"></c:import>

<!-- 版权所有 -->
<c:import url="../../include/copyright.jsp"></c:import>
</body>
</html>